from app.server.flask_app.admin_views import MyBaseModelView


class UserModelView(MyBaseModelView):
    column_list = (
        "id",
        "telegram_id",
        "username",
        "is_banned",
        "is_registered",
        "email",
        "balance",
        "proxies",
        "was_registered",
    )

    column_editable_list = (
        "is_banned",
        "is_registered",
        "balance",
    )

    column_searchable_list = (
        "telegram_id",
        "username",
        "email",
    )

    column_filters = (
        "telegram_id",
        "username",
        "is_banned",
        "is_registered",
        "balance",
        "proxies",
        "was_registered",
    )
